package com.model.pojo;

public class RepEntity<T> {
    private int code;
    private String msg;
    private T data;

    public RepEntity(RepCode repCode) {
        this.code = repCode.getCode();
        this.msg = repCode.getMsg();
    }

    public RepEntity(RepCode repCode, T data) {
        this(repCode);
        if (data != null){
            this.data = data;
        }
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
